package com.flower.enjoyment.flower.entityDo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="banner对象")
public class SysBannerDo {
    @ApiModelProperty(value="ID")
    private String id;
    @ApiModelProperty(value="图片URL")
    private String bannerImg;
    @ApiModelProperty(value="连接URL")
    private String url;
    @ApiModelProperty(value="类型，0外部URL，1商铺")
    private Integer type;
    @ApiModelProperty(value="参数，类型为1时需要")
    private String parameter;
    @ApiModelProperty(value="排序")
    private Integer orders;
    @ApiModelProperty(value="状态")
    private Integer status;

    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginDate;
    @ApiModelProperty(value = "活动结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "是否执行，0不执行1执行")
    private int show;
    @ApiModelProperty(value = "赠送金额")
    private double amount;
}